
$(document).ready(function () {
    $.ajax({
        url:baseUrl+'mobile/home/getMoreClass',
        type:'POST',
        dataType:'json',
        success:function (data) {
            var str='';
            var width = $(window).width()-150;
            $.each(data,function (id,item) {
                str+='<li><a  nodeId="'+item['iPCId']+'" href="javascript:void(0)" onclick="openit(this)"><div class="content" style="width: '+width+'px;">'+item['sSchoolName']+item['sUserName']+'</div><div class="m-right" ><span  class="m-badge c1">'+item['tStartTime']+'</span></div></a></li>';
            });
            $('#listView').append(str);
        },
        error:function (data) {
            console.log(data);
        }
    });
    window.top.bindBack(function () {
        window.top.goHome();
    });
});
function openit(target){
    window.top.registerBack();//注册返回
    var text = $(target).text();
    var id   = $(target).attr('nodeId');
    $('#targetFrame',window.parent.document).attr('src',baseUrl+'mobile/home/classDetail?iPCId='+id);
    window.parent.setTitle("");
    window.parent.goTarget();
}